package com.xht.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestJob {
    @Scheduled(cron = "0/5 * * * * ? ")  //每5s执行一次该方法
    public void testJob() {

//        //执行定时任务
//        System.out.println("定时任务执行了!!!");
    }
}
